package com.teemor.im.common.command;

import com.teemor.im.common.util.IDCreator;
import lombok.Data;

/**
 * @ename zhoulk
 * @cname 周李科
 * @date 2020/6/17 14:09
 */

@Data
public class RemoteCommand {
    //当前命令ID，标识每一个命令
    private String commandId;
    //请求类型
    private RequestType requestType;
    //事件类型
    private EventType eventType;
    //内容
    private String content;
    //发送时间戳
    private Long sendTime;

    public RemoteCommand() {
        this.commandId = IDCreator.createString();
        this.sendTime = System.currentTimeMillis();
    }
}
